package com.sqfw.project.wpReport.controller;


import com.sqfw.framework.web.controller.BaseController;
import com.sqfw.framework.web.domain.AjaxResult;
import com.sqfw.project.wp.domain.WpVisitInfo;
import com.sqfw.project.wpReport.domain.VisitStatistics;
import com.sqfw.project.wpReport.service.IVisitStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 政务类质量回访统计表Controller
 *
 * @author lx
 * @date 2023-07-26
 */
@RestController
@RequestMapping("/wpReport/visitStatistics")
public class VisitStatisticsController extends BaseController {

    @Autowired
    private IVisitStatisticsService visitStatisticsService;

    /**
     * 查询回访质量政务类报表列表
     */
    @PreAuthorize("@ss.hasPermi('getVisitStatisticsList')")
    @GetMapping("/getVisitStatisticsList")
    public AjaxResult getVisitStatisticsList(WpVisitInfo wpVisitInfo)
    {
        List<VisitStatistics> list = visitStatisticsService.getVisitStatisticsList(wpVisitInfo);
        return AjaxResult.success(list);

    }
}
